package com.itheima.dao;

import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckItemDao {

    @Select("select tc.* from t_checkitem tc \n" +
            "    left join t_checkgroup_checkitem tcc on tc.id = tcc.checkitem_id \n" +
            "where checkgroup_id=#{id};")
    List<CheckItem> getByCheckGroupId(Integer id);
}
